package com.hk.commons.entity.view;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hk.commons.DataMasking;
import com.hk.commons.StringHelper;

@Entity
@Table(name = "reservView")
public class ReservView implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4257468337548434247L;
	@Id
	private Long reservId;
	private Long cts;
	private BigDecimal amount;
	private BigDecimal dividend;
	private String productName;
	private Integer proTerm;
	private String realName;
	private String phone;
	private String recommendCode;

	public Long getReservId() {
		return reservId;
	}

	public void setReservId(Long reservId) {
		this.reservId = reservId;
	}

	public Long getCts() {
		return cts;
	}

	public void setCts(Long cts) {
		this.cts = cts;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getDividend() {
		return dividend;
	}

	public void setDividend(BigDecimal dividend) {
		this.dividend = dividend;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer getProTerm() {
		return proTerm;
	}

	public void setProTerm(Integer proTerm) {
		this.proTerm = proTerm;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRecommendCode() {
		return recommendCode;
	}

	public void setRecommendCode(String recommendCode) {
		this.recommendCode = recommendCode;
	}

	public String getEncryptPhone() {
		String str = "";
		if (StringHelper.isNotEmpty(phone)) {
			str = DataMasking.getMaskingData(phone, 4, 4);
		}
		return str;
	}
}
